<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>收银日报表</title>

<link rel="stylesheet" type="text/css" href="${resourcePath}/css/basic.css" />
<link rel="stylesheet" type="text/css" href="${viewPath}/resources/css/cash.css" />
<link draggable="true" rel="stylesheet" href="${viewPath}/resources/css/statistics.css" />
	<style type="text/css">
#stat_list table thead tr th {
	vertical-align: middle !important;
	text-align: center; 
}

</style>
</head>

<body>
	$!{include("import_js_css.html")}
	$!{include("header.html")}

	<script type="text/javascript">
		$(document).ready(function(){
			$("#inputStartDate1").datetimepicker({
				language : "zh-CN"
			});
			$("#inputStartDate2").datetimepicker({
				language : "zh-CN"
			});
		});
	</script>
	<!--#var(CashModel cashModel)-->
	
 	
 	
 	
	<div class="container menu_all">
		<div style="margin-top:-20px;">
		<div style="float:left; margin-top:20px; margin-left:25px;">
			分馆&nbsp;&nbsp;
			<!-- #for(CashReport cash : cashModel.cashReportList) -->
				<!-- #if(for.index == 0) -->
					${cash.organizationName}
				<!-- #end -->
			<!-- #end -->
		</div>
		<form action="${basePath}/yueyogaAdmin/findCash.jhtml" method="POST" name="cardreports">
			<div style="float:left; margin-top:20px; margin-left:160px; margin-right:5px;">日期</div>
			<div id="inputStartDate1" class="input-group date"
				data-date-format="YYYY-MM-DD" style="float:left; width:200px; margin-top:15px;">
				<input id="inputStart1" name="startdate" type='text' class="form-control" value="${startdate}" />
				<span class="input-group-addon">
					<span class="glyphicon glyphicon-time"></span>
				</span>
			</div>
			<div style="float:left; margin-top:20px; margin-left:5px; margin-right:5px;">至</div>
			<div id="inputStartDate2" class="input-group date"
				data-date-format="YYYY-MM-DD" style="float:left; width:200px; margin-top:15px;">
				<input id="inputStart2" name="enddate" type='text' class="form-control" value="${enddate}" />
				<span class="input-group-addon">
					<span class="glyphicon glyphicon-time"></span>
				</span>
			</div>
			<div style="float:left; margin-top:15px;">
				<input id="but" type="submit" class="btn btn-ade-default" style="background:#dddd; margin-left:5px;" value="搜索"></input>
			</div>
		</form>
	</div>
	<br><br>	
		
		<!--#if(cashModel == null)-->
			<div class="panel-body">
				<p>没有符合条件的数据</p>
			</div>
		<!--#else-->
			<div id="stat_list" class="panel panel-default clear">
				<table id="cash_table" class="table table-bordered table-hover table-condensed" style="text-align: center;">
					<thead>
					<tr class="tr-edit">
						<th rowspan="2">分馆</th>
						<th rowspan="2">分类</th>
						<th rowspan="2">总销售金额</th>
						<th colspan="5">支付方式</th>
					</tr>
					<tr>
						<th>现金</th>
						<th>刷卡</th>
						<th>转账</th>
						<th>支票</th>
					</tr>
					</thead>
					<!-- #for(CashReport cash : cashModel.cashReportList) -->
						<tr>
							<!-- #if(for.index == 0) -->
								<td rowspan="${cmCount+1}">
									${cash.organizationName}
								</td>
							<!-- #end -->
							<td>
								<!-- #if(cash.type == '充值') -->
									${cash.type}
								<!-- #else -->
									<a href="${basePath}/yueyogaAdmin/findCashByType.jhtml?type=${cash.type}">${cash.type}</a>
								<!-- #end -->
							</td>
							<td>
								${cash.money.format("0.00")}
							</td>
							<td>
								${cash.xjMoney.format("0.00")}
							</td>
							<td>
								${cash.skMoney.format("0.00")}
							</td>
							<td>
								${cash.zzMoney.format("0.00")}
							</td>
							<td>
								${cash.zpMoney.format("0.00")}
							</td>
						</tr>
					<!-- #end -->
					
				</table>
			</div>
		<!--#end-->
	</div>
</body>
</html>